/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.infor.entity.Goods;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

import java.util.Date;

/**
 * 物料上浮Entity
 * @author 李超辉
 * @version 2019-04-28
 */
public class GoodsCustomer extends DataEntity<GoodsCustomer> {
	
	private static final long serialVersionUID = 1L;
	private NewCustomers customer;		// 客户 父类
	private String code;		// 物料编码
	private Goods name;		// 物料名称
	private String bl;		// 上浮比例
	private String fj;		// 上浮附加
	private Date qs;		// 生效时间
	private Date jz;		// 失效时间
	private String pro;
	
	public GoodsCustomer() {
		super();
	}

	public GoodsCustomer(String id){
		super(id);
	}

	public GoodsCustomer(NewCustomers customer){
		this.customer = customer;
	}
	@ExcelField(title="收货单位名称", fieldType=NewCustomers.class, value="customer.dwmc", align=2, sort=6)

	public NewCustomers getCustomer() {
		return customer;
	}

	public void setCustomer(NewCustomers customer) {
		this.customer = customer;
	}
	
	@ExcelField(title="物料编码", align=2, sort=8)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="物料名称",fieldType=Goods.class, value="name.name", align=2, sort=9)
	public Goods getName() {
		return name;
	}

	public void setName(Goods name) {
		this.name = name;
	}
	
	@ExcelField(title="上浮比例", align=2, sort=10)
	public String getBl() {
		return bl;
	}

	public void setBl(String bl) {
		this.bl = bl;
	}
	
	@ExcelField(title="上浮附加", align=2, sort=11)
	public String getFj() {
		return fj;
	}

	public void setFj(String fj) {
		this.fj = fj;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="生效时间", align=2, sort=12)
	public Date getQs() {
		return qs;
	}

	public void setQs(Date qs) {
		this.qs = qs;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="失效时间", align=2, sort=13)
	public Date getJz() {
		return jz;
	}

	public void setJz(Date jz) {
		this.jz = jz;
	}
	@ExcelField(title="项目", align=2, sort=14)
	public String getPro() {
		return pro;
	}

	public void setPro(String pro) {
		this.pro = pro;
	}
}